Creating a String Parameter
Description
To create a new string parameter in the Model Tree:
Select the position in a Declaration Section where the new string parameter should be inserted
From the Edit menu select Insert – Other (or press the
<Insert>
key)In the dialog box select
String parameter and press OK
Enter a name for the new string parameter (if you are creating a multi-dimensional parameter, you can type the indices of each dimension as well)
Press
<Enter>
to create the new string parameter (or press<Esc>
to abort the operation)
The newly created string parameter is now ready for use, but you probably want to specify some additional attributes. To modify the attributes of the newly created string parameter:
Press
<Enter>
or double click on the string parameter.
The most commonly used attributes of a string parameter are discussed below.
INDEX DOMAIN
: TheINDEX DOMAIN
attribute should be specified in order to declare indexed string parameters. Thewizard will display the Set Dependency Tree of your model and allows you to select one or more indices.
DEFAULT
: TheDEFAULT
attribute should be used in order to specify a default value other than the empty string. Note that AIMMS will explicitly store all values that are non-default.DEFINITION
: TheDEFINITION
attribute can (and should) be used to specify the definition of an identifier by means of a global relationship. AIMMS stores the result of a definition and recomputes it only when necessary.
Learn more about